﻿using PMS.Domain.Seedwork;
using System;
using System.Collections.Generic;
using System.Text;

namespace PMS.Domain.AggregatesModel.ProjectAggregate
{

    /// <summary>
    /// 项目参与者
    /// </summary>
    public class ProjectContributor:Entity
    {
        
        /// <summary>
        /// 所属项目编号
        /// </summary>
        public int ProjectId { get; private set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        public int  UserId { get;  set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get;  set; }

        /// <summary>
        /// 审核状态  0-未通过  1-通过
        /// </summary>
        public ProjectAuditStatus ProjectAuditStatus { get;  set; }

        public int ProjectAuditStatusId { get; set; }

        public DateTime JoinTime { get; set; }

        public ProjectContributor() { }

        public ProjectContributor(int userid,string username)
        {
            UserId = userid;
            UserName = username;
            JoinTime = DateTime.Now;
            ProjectAuditStatusId = ProjectAuditStatus.Approving.Id;         
        }
    }
}
